import request from '@/utils/request'


export function create${poName}(data) {
  return request({
    url: '/api/${poName}/save',
    method: 'post',
    data
  })
}

export function del${poName}(id) {
  return request({
    url: '/api/${poName}/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/${poName}/batch/del',
    method: 'post',
    data
  })
}

export function edit${poName}(data) {
  return request({
    url: '/api/${poName}/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/${poName}/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPage${poName}(query) {
  return request({
    url: '/api/${poName}/getPage',
    method: 'post',
    data: query
  })
}

export function getList${poName}(query) {
  return request({
    url: '/api/${poName}/getList',
    method: 'post',
    data: query
  })
}




